package com.daigoudao.web.model;

import java.math.BigDecimal;
import java.util.Date;

@SuppressWarnings("serial")
public class BillModel extends BasePageModel {

	private String transId;

	private Date startTime;

	private int brokerId;
	private int year;
	private int month;
	private int num;
	/**
	 * 交易金额
	 */
	private double payment;

	/**
	 * 平台服务费
	 */
	private double platformFee;

	/**
	 * 结算金额
	 */
	private double settlementAmount;

	private int billingStatus;

	public int getMonth() {
		return month;
	}

	public void setMonth(int month) {
		this.month = month;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public double getPayment() {
		return payment;
	}

	public void setPayment(double payment) {
		this.payment = payment;
	}

	public void setPlatformFee(double platformFee) {
		this.platformFee = platformFee;
	}

	public void setYear(int year) {
		this.year = year;
	}

	public int getYear() {
		return year;
	}

	public double getPlatformFee() {
		return BigDecimal.valueOf(platformFee)
				.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
	}

	public void setSettlementAmount(double settlementAmount) {
		this.settlementAmount = settlementAmount;
	}

	public double getSettlementAmount() {
		return BigDecimal.valueOf(settlementAmount)
				.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();

	}

	public int getBrokerId() {
		return brokerId;
	}

	public void setBrokerId(int brokerId) {
		this.brokerId = brokerId;
	}

	public String getTransId() {
		return transId;
	}

	public void setTransId(String transId) {
		this.transId = transId;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public int getBillingStatus() {
		return billingStatus;
	}

	public void setBillingStatus(int billingStatus) {
		this.billingStatus = billingStatus;
	}

}
